home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / db / esm-3.1 / esm-3 / usr / local / sm / src / client / include / clog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-05  |  2.4 KB  |  71 lines

  1. #ifndef _CLOG_H_
  2. #define _CLOG_H_
  3. /*
  4.  *   $RCSfile: clog.h,v $  
  5.  *   $Revision: 1.1.1.1 $  
  6.  *   $Date: 1996/05/04 21:55:19 $      
  7.  */ 
  8. /**********************************************************************
  9. * EXODUS Database Toolkit Software
  10. * Copyright (c) 1991 Computer Sciences Department, University of
  11. *                    Wisconsin -- Madison
  12. * All Rights Reserved.
  13. *
  14. * Permission to use, copy, modify and distribute this software and its
  15. * documentation is hereby granted, provided that both the copyright
  16. * notice and this permission notice appear in all copies of the
  17. * software, derivative works or modified versions, and any portions
  18. * thereof, and that both notices appear in supporting documentation.
  19. *
  20. * THE COMPUTER SCIENCES DEPARTMENT OF THE UNIVERSITY OF WISCONSIN --
  21. * MADISON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION.  
  22. * THE DEPARTMENT DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  23. * WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  24. *
  25. * The EXODUS Project Group requests users of this software to return 
  26. * any improvements or extensions that they make to:
  27. *
  28. *   EXODUS Project Group 
  29. *     c/o David J. DeWitt and Michael J. Carey
  30. *   Computer Sciences Department
  31. *   University of Wisconsin -- Madison
  32. *   Madison, WI 53706
  33. *
  34. *     or exodus@cs.wisc.edu
  35. *
  36. * In addition, the EXODUS Project Group requests that users grant the 
  37. * Computer Sciences Department rights to redistribute these changes.
  38. **********************************************************************/
  39.  
  40. /* Define the size of the log buffer group on a client 
  41.             (specified in terms of log pages) */
  42. #define CLOG_BUFGROUP_SIZE 1
  43.  
  44. /*
  45.  *    Information about an operation to be logged from a client.
  46.  */
  47.  
  48. typedef struct    {
  49.  
  50.     UONE    type;        /* type of record entry    */
  51.     UONE    action;        /* operation we are logging*/
  52.     UONE    flags;
  53.     OID        oid;        /* oid of object the action applies to    */
  54.     FOUR    start;      /* byte of object operation starts at */
  55.     FOUR    size;          /* number of bytes affected*/
  56.     ONE     *oldData;     /* data that was overwritten*/
  57.     ONE     *newData;    /* new data values added*/
  58.     PID        actionPid;      /* PID of page */
  59.     LRC        currentLRC;     /* NOTE: THIS FIELD IS NO LONGER USED
  60.                     AND IS NOT SET BY MOST OPERATIONS.
  61.                     LRC of page at time of operation */
  62.     SLOTINDEX    rootSlot;    /* slot number if the referenced object is
  63.                     a slotted lg obj root on a slotted
  64.                     page.  NIL otherwise.  NOTE: this
  65.                     field is meaningful only for large
  66.                     object operations */
  67.  
  68. } OPERATIONINFO;
  69.  
  70. #endif /* _CLOG_H_ */
  71.